<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<meta name="viewport" content="width-device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css" />
<link rel="stylesheet" href="css/person_update.css" />
<link rel="shortcut icon" href="action/ico/logo.ico"/>
</head>
	
<!-- 定义头部区域，放导航和logo -->
<header>
	<?php  include 'action/session_check.php'; //登录判断  ?>
<div class="logo"><img src="ico/logo.png" alt=""/>伴美科技</div>
<nav>
<a href="main.php">返回<<<<</a>
</nav>
<!-- 定义折叠按钮 屏幕缩小到 -->
<div class="burger">
    <div class="burger-line1"></div>
	<div class="burger-line2"></div>
	<div class="burger-line3"></div>
</div>	
</header>
<!-- 头部导航结束 -->
	
<body>
<div class="container_box">
	<table>
		<tr><td><form action="search_result.php" method="post" class="search-form" style=" background:#eee;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    height: 4.5rem;
    width:50rem;">
    <input type="search" name="" placeholder="搜索结果......" id="searchBox" style="
    height:100%;
    width:100%;
    background:none;
    text-transform: none;
	border: 0;
    font-size: 1.5rem;
    color:#444;
    padding:1rem; ">
        <label for="searchBox" class="fas fa-search" style="font-size: 2rem;
    margin-right: 1.5rem;
    color:#f79f1f;
    cursor: pointer;"></label>
    </form></td></tr>
		<tr><td>
			<p>为您搜索到以下结果：</p>
			</td></tr>
		<tr><td style="height: 40px;"></td></tr>
	</table>

<table>
 <?php   
  require_once("conn/conn_db.php");  //包含数据库连接文件  
  $sql = "select p.*,pt.pt_id,pt.pt_name from product_info p,product_type pt where p.pt_id = pt.pt_id order by p_id desc"; //查询语句
  $result = $conn->query($sql);  //执行SQL语句
  while($row = $result->fetch_array())   //遍历查询结果的每一行
  {
?>
  <tr>
	  <td rowspan="4" style="width: 400px;"> <img src='<?php echo $row["p_image"];?>' width="200" height="200"/> </td>
	
	<td colspan="2"><h2 style="padding: 0; margin-top: 20px;">商品名：<?php echo $row["p_name"];?> </h2>
	  </td>
	</tr>
	 <tr>
	<td style="width: 120px">
		<h3 style="font-size: 18px; font-weight: 700">品牌：<?php echo $row["p_brand"];?></h3></td>
		<td><font color="#E48D31" style="font-size: 25px">￥<?php echo $row["p_price"];?></font></td>
		
	</tr>
	<tr>
	<td colspan="2" height="16px"><p style="font-size: 16px; font-weight: 500">商品介绍：<?php echo $row["p_intro"];?></p> </td>
	
	</tr>
	
	<tr>
	<td></td>
    <td align="right"><a href="product_info.php?p_id=<?php echo $row["p_id"];?>">查看详情</a></td>
  </tr>
	
	<tr>
	<td height="50px"></td>
	</tr>
<?php }   ?>
 </table>
</div>
	
	<!-- 底部模块开始 -->	
	<footer>
    <div class="footer-menus">
	   <div class="contact-us">
		    <p class="menu-title">联系我们</p>
		    <p>地址：中国重庆市XX路XX商务中心XX楼</p>
		   　<p>电话：+86XXX XXXX XXXX</p>
		   　<p>传真：+86XXX　XXXX XXXX</p>
		  　 <p>电子邮箱：admin@163.com</p>
	   </div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">服务概况</p>
		  <ul class="menu-items">
		     <li><a href="#">跨境电商</a></li>
			 <li><a href="#">供应商</a></li>
			 <li><a href="#">移动应用</a></li>
			 <li><a href="#">网页设计</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">跨境产品</p>
		  <ul class="menu-items">
		     <li><a href="#">美妆护肤</a></li>
			 <li><a href="#">家用电器</a></li>
			 <li><a href="#">健康零食</a></li>
			 <li><a href="#">生活用品</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">公司动态</p>
		  <ul class="menu-items">
		     <li><a href="#">信息公开</a></li>
			 <li><a href="#">最近新闻</a></li>
			 <li><a href="#">最新消息</a></li>
			 
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">帮助与支持</p>
		  <ul class="menu-items">
		     <li><a href="#">帮助中心</a></li>
			 <li><a href="contact.php" style="color:#f79f1f; ">留言中心</a></li>
			 <li><a href="#">文档资源</a></li>
			
		  </ul>
		</div>
		<p class="icp-info">备案号信息</p>
		<p class="rights">
		      &copy;2022 伴美科技 - 有限责任公司官网 版权所有
		</p>
		

	</div>	
</footer>
<!-- 底部模块结束 -->	
</body>
</html>